/*class Dog{
    public String name;
    public int age;

    public void eat()
    {
        System.out.println(name+" 正在吃饭！");
    }
    public void wangwang(){
        System.out.println(name+" 正在wangwang叫！");
    }
}
class Cat{
    public String name;
    public int age;

    public void eat()
    {
        System.out.println(name+" 正在吃饭！");
    }
    public void miaomiao(){
        System.out.println(name+" 正在miaomiao叫！");
    }
}*/

class Animal{
    public String name;
    public int age;

    public void eat()
    {
        System.out.println(name+" 正在吃饭！");
    }
}
class Dog extends Animal{
    public void wangwang(){
        System.out.println(name+" 正在wangwang叫！");
    }
}
class Cat extends Animal{
    public void miaomiao(){
        System.out.println(name+" 正在miaomiao叫！");
    }
}
public class Test {
    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.name = "小黄";
        dog.eat();
        dog.wangwang();
        System.out.println("==============================");
        Cat cat = new Cat();
        cat.name = "小花";
        cat.eat();
        cat.miaomiao();
    }
}
